﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using fKanban.Provider;

namespace vancldashboard.Controllers
{
    /// <summary>
    /// 登录验证
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
    public class LoginFilter : ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            //var Username = filterContext.HttpContext.Request["Username"];
            //var Password = filterContext.HttpContext.Request["Password"];
            //if (!UserProvider.Login(Username, Password))
            //{
            //    filterContext.HttpContext.Response.Redirect("", true);
            //}
        }
    }
}
